package com.haojin.haojintimingmonitor.service.impl;

import com.haojin.haojintimingmonitor.domain.TravelVehicle;
import com.haojin.haojintimingmonitor.mapper.VehicleTravelMapper;
import com.haojin.haojintimingmonitor.service.VehicleTravelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VehicleTravelServiceImpl implements VehicleTravelService {
    @Autowired
    private VehicleTravelMapper vehicleTravelMapper;
    @Override
    public List<TravelVehicle> getTravelVehicle() {
        return vehicleTravelMapper.selectVehicleTravel();
    }

    @Override
    public TravelVehicle getRecentTravel() {

        return  vehicleTravelMapper.selectRecentTravel();
    }
}
